package com.abe.bathsystem.entity;


import android.support.annotation.IntDef;

import com.abe.bathsystem.utils.NormalUtils;
import com.abe.libcore.utils.Utils;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Random;

public class ReqConstant {
    //温度传感器标识
    public static final String DEVICE_SENSOR_TEMPERATURE = "sensor#" + NormalUtils.getMac(Utils.getContext(), false);
    //os参数
    public static final String NET_OS = "dev";
    //服务访问成功
    public static final int NET_RESULT_OK = 0;
    //广告类型
    public static final int AD_TYPE_IMG = 0;
    public static final int AD_TYPE_VIDEO = 1;
    //浴位状态
    public static final int BATH_POS_STATE_FAULT = -1;//故障
    public static final int BATH_POS_STATE_NO = 0;//空闲中，未洗浴
    public static final int BATH_POS_STATE_RESERVE = 2;//预约中
    public static final int BATH_POS_STATE_BATHING = 1;//洗浴中

    public static final int BATH_POS_START_FAIL = 4;//开启洗浴失败

    @IntDef({BATH_POS_STATE_FAULT, BATH_POS_STATE_NO, BATH_POS_STATE_BATHING, BATH_POS_STATE_RESERVE})
    @Retention(RetentionPolicy.SOURCE)
    public @interface BATH_POS_STATE {

    }

    //推送Action
    public static final String USER_BEGIN = "user.begin";//用户使用服务
    public static final String USER_END = "user.end";//结束服务
    public static final String USER_BOOK = "user.book";//预订服务
    public static final String USER_CANCEL = "user.cancel";//取消预订
    public static final String SYS_UPDATE = "sys.update";//服务器参数改变
    public static final String APP_UPDATE = "app.update";//自动更新

}
